import request from "../../request";
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";

/**
 * 根据 ID 删除 Comments 信息
 * /comments/{id}
 */
export function deleteCommentsById(params: DeleteCommentsByIdParams, config?: AxiosRequestConfig) {
    return request.delete<DeepRequired<boolean>>(`/comments/${params.id}`, config);
}

export interface DeleteCommentsByIdParams {
    id: number;
}
